<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>游戏房间</title>
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/game_room.css">
</head>

<body>
    <div class="nav"><a href="./login.html">五子棋对战</a></div>
    <div class="container">
        <div class="game-section">
            <!-- 棋盘区域 -->
            <canvas id="chess" width="450px" height="450px"></canvas>
            <!-- 显示信息 -->
            <div id="screen">等待玩家下棋...</div>
        </div>
        <div class="chat-section">
            <h2>聊天室</h2>
            <div class="chat-messages" id="chatMessages"></div>
            <div class="chat-input">
                <input type="text" id="messageInput" placeholder="输入你的消息...">
                <button onclick="sendMessage()">发送</button>
            </div>
        </div>
    </div>


    <script src="js/script.js"></script>
    <script src="js/chat.js"></script>
</body>
</html>